package com.fs.sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.sale.pojo.SaleOrder;
import com.fs.sale.vo.OrderSearch;
import com.fs.sale.vo.SaleOrderVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SaleOrderMapper extends BaseMapper<SaleOrder> {
    List<SaleOrderVo> selectAll(@Param("page") Page<SaleOrderVo> page,@Param("orderSearch") OrderSearch orderSearch);
    List<SaleOrderVo> selectById(@Param("id") int id, @Param("orderSearch") OrderSearch orderSearch,@Param("page") Page<SaleOrderVo> page);

    int insert(SaleOrder saleOrder);
}
